<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Cate extends Model
{
    protected $table='cate';
    protected $guarded=[];

    /**
     * 模型关联商品
     */
    public function goods(){
        return $this->hasMany('App\Model\Goods')->where('status','<','2');
    }
}
